// pages/package/tagTab/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    selectedIndex1: 0,
    selectedIndex2: 0,
    selectedIndex3: 0,
    tags:["tag1","tag2","tag3"],
    tagsObj: [{
      title: "tagObj1"
    },{
      title: "tagObj2"
    },{
      title: "tagObj3"
    },]
  },
  clickTag1(e){
    const {
      index,
      target
    } = e.detail
    console.log("点击标签栏1",index, target)
    this.setData({
      selectedIndex1: index
    })
  },
  clickTag2(e){
    const {
      index,
      target
    } = e.detail
    console.log("点击标签2",index, target)
    this.setData({
      selectedIndex2: index
    })
  },
  clickTag3(e){
    const {
      index,
      target
    } = e.detail
    console.log("点击标签",index, target)
    this.setData({
      selectedIndex3: index
    })
  },
})